#pragma once
#include <string>
namespace ECS
{
	class TextUtils
	{
		public:
			static bool IsNumber(char cValue);

			static int toInt32(const char* crValue);
			static int toInt32(const std::string & crValue);

			static float toFloat(const char* crValue);
			static float toFloat(const std::string & crValue);
			
			static bool toBool(const char* crValue);
			static bool toBool(const std::string & crValue);
 //   static CharacterAttribute ToAttribute(const std::string& crValue);
 //   static CharacterProfession ToProfession(const std::string& crValue);

	//static CCTextAlignment ToTextAlignment(const std::string& crValue);
	//static CCVerticalTextAlignment ToVerticalTextAlignment(const std::string& crValue);

	//static ccColor4B ToColor4B(const std::string& crValue);

	//static std::string ToString(int iValue);
 //   static std::string ToString(unsigned int uValue);
 //   
 //   /**
 //    * @brief   Converts an iValue to a string with sign.
 //    * 			Example:
 //    * 			12  => "+12"
 //    * 			0   => "0"
 //    * 			-3  => "-3"
 //    *
 //    * @param   iValue  Zero-based index of the value.
 //    *
 //    * @return  iValue as a std::string.
 //    */
 //   static std::string ToStringSigned(int iValue);

	//static std::string ToString(float fValue);
	//static std::string ToString(bool bValue);
 //   static std::string ToString(CharacterAttribute attr);
 //   static TileOrientation ToTileOrientation( const char* sdir );
 //   static std::string ToString(TileOrientation orientation);
 //   
 //   static int hashCode(string str);

		/**
		* @brief   Converts a string to lower case.
		*
		* @param   value   Input string.
		*
		* @return  Lowercase string.
		*/
		static std::string toLowerCase(const std::string& value);

 //   /**
 //    * @brief   Converts a string to upper case.
 //    *
 //    * @param   value   input string.
 //    *
 //    * @return  value as a string.
 //    */
 //   static string ToUpperCase(const std::string& value);

 //   static int ToFraction(const string& value);
 //   
 //   static string ToTimeString(time_t timeInSeconds);
	};
}
